﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace StockTrader.BusinessService.DataContract
{
    [DataContract()]
    public class OrderSubmitData
    {
        [DataMember]
        public int OrderId { set; get; }
        [DataMember]
        public string AccountNo { set; get; }
        [DataMember]
        public string OrderSide { set; get; }
        [DataMember]
        public string Symbol { set; get; }
        [DataMember]
        public string OrderSpec { set; get; }
        [DataMember]
        public string OrderClass { set; get; }
        [DataMember]
        public string OrderMode { set; get; }
        [DataMember]
        public DateTime OpenDate { set; get; }
        [DataMember]
        public DateTime ExpireDate { set; get; }
        [DataMember]
        public string OrderNo { set; get; }
        [DataMember]
        public DateTime TimeStamp { set; get; }
        [DataMember]
        public string Price { set; get; }
        [DataMember]
        public int Quantity { set; get; }
        [DataMember]
        public string OrderType { set; get; }

        public OrderSubmitData() { }
        public OrderSubmitData(int orderid, string accNo, string orderside, string symbol,  string orderspec, string orderclass, string ordermode, DateTime opendate, DateTime expiredate, string orderNo, DateTime timeStamp, string price, int qtty, string ordertype)
        {
            OrderId = orderid;
            AccountNo = accNo;
            OrderSide = orderside;
            Symbol = symbol;
            AccountNo = accNo;
            OpenDate = opendate;
            ExpireDate = expiredate;
            OrderSpec = orderspec;
            OrderClass = orderclass;
            OrderMode = ordermode;
            OrderNo = orderNo;
            TimeStamp = timeStamp;
            Price = price;
            Quantity = qtty;
            OrderType = ordertype;
        }
    }
}
